package cn.tedu.egweibo4.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @author Justin Parker
 * @author 2024/8/12 22:31
 * @version 1.0
 */
@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum StatusCode {

    USERNAME_ERROR(1002,"用户名错误"),
    USERNAME_EXIST(1003,"用户名被占用"),
    PASSWORD_ERROR(1001,"密码错误"),
    NOT_LOGIN(1000,"未登录"),

    OPEARTION_SUCCESS(2001,"操作成功"),
    OPEARTION_FAIL(2002,"操作失败");

    private Integer state;
    private String message;

}
